// 页脚组件样式
@use '../variables' as *;
// 管理后台页脚样式
.admin-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    padding: 16px 0;
    margin-top: auto; // 确保页脚在底部
    position: relative;
    z-index: 100;
}

.admin-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-footer .footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    .copyright {
        color: #64748b;
        font-size: 14px;
    }
    .beian {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #64748b;
        font-size: 14px;
        .beian-icon {
            width: 16px;
            height: 16px;
        }
        a {
            color: #64748b;
            text-decoration: none;
            transition: color 0.3s ease;
            &:hover {
                color: #475569;
            }
        }
    }
}

.admin-footer .footer-right {
    .home-link {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #64748b;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 20px;
        border: 1px solid #cbd5e1;
        background: rgba(255, 255, 255, 0.8);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
            transition: left 0.5s;
        }
        &:hover {
            color: #6366f1;
            background: rgba(255, 255, 255, 0.95);
            border-color: #6366f1;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
            &::before {
                left: 100%;
            }
        }
        .el-icon {
            font-size: 16px;
        }
    }
}

// 管理后台页脚响应式设计
@media (max-width: 768px) {
    .admin-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .admin-footer .footer-left {
        justify-content: center;
        gap: 16px;
    }
    .admin-footer .footer-right {
        .home-link {
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 25px;
            border: 1px solid #cbd5e1;
            &:hover {
                background: rgba(255, 255, 255, 1);
                border-color: #6366f1;
                transform: translateY(-2px);
                color: #6366f1;
            }
        }
    }
}

@media (max-width: 480px) {
    .admin-footer .footer-content {
        padding: 0 16px;
    }
    .admin-footer .footer-left {
        flex-direction: column;
        gap: 12px;
        .copyright,
        .beian {
            font-size: 13px;
        }
    }
}

.app-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto; // 确保页脚始终在底部
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    .footer-title {
        font-size: 18px;
        font-weight: $font-bold;
        color: white;
        margin: 0 0 20px 0;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        position: relative;
        &::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
        }
    }
    .footer-description {
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
        margin: 0;
        font-size: 14px;
    }
    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
        li {
            margin-bottom: 12px;
            .footer-link {
                color: rgba(255, 255, 255, 0.8);
                text-decoration: none;
                transition: all $transition-normal;
                font-size: 14px;
                position: relative;
                padding-left: 0;
                &::before {
                    content: '→';
                    position: absolute;
                    left: -15px;
                    opacity: 0;
                    transition: all $transition-normal;
                    color: #667eea;
                }
                &:hover {
                    color: white;
                    padding-left: 15px;
                    &::before {
                        opacity: 1;
                    }
                }
            }
        }
    }
    .footer-contact {
        list-style: none;
        padding: 0;
        margin: 0;
        li {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            .el-icon {
                color: #667eea;
                font-size: 16px;
                flex-shrink: 0;
            }
            span {
                line-height: 1.4;
            }
        }
    }
    .social-links {
        display: flex;
        gap: 15px;
        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all $transition-normal;
            border: 1px solid rgba(255, 255, 255, 0.1);
            .el-icon {
                font-size: 18px;
            }
            &:hover {
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                color: white;
                transform: translateY(-2px);
                box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
                border-color: transparent;
            }
        }
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    .footer-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
        .copyright {
            color: rgba(255, 255, 255, 0.7);
            margin: 0;
            font-size: 14px;
        }
        .legal-links {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            .legal-link {
                color: rgba(255, 255, 255, 0.7);
                text-decoration: none;
                font-size: 13px;
                transition: color $transition-normal;
                &:hover {
                    color: white;
                }
            }
            .separator {
                color: rgba(255, 255, 255, 0.3);
                font-size: 12px;
            }
        }
    }
    .icp-info {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        .icp-link {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 13px;
            transition: color $transition-normal;
            display: flex;
            align-items: center;
            gap: 5px;
            &:hover {
                color: white;
            }
            .beian-icon {
                width: 14px;
                height: 14px;
                opacity: 0.7;
            }
        }
        .separator {
            color: rgba(255, 255, 255, 0.3);
            font-size: 12px;
        }
    }
}

// 响应式设计
@media (max-width: 768px) {
    .app-footer {
        padding: 40px 0 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        .footer-info {
            align-items: center;
            .legal-links {
                justify-content: center;
            }
        }
        .icp-info {
            justify-content: center;
        }
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 25px;
    }
    .footer-section {
        .footer-title {
            font-size: 16px;
        }
        .footer-description,
        .footer-links .footer-link,
        .footer-contact li {
            font-size: 13px;
        }
    }
    .footer-bottom {
        .copyright,
        .legal-links .legal-link,
        .icp-info .icp-link {
            font-size: 12px;
        }
    }
}